import { handleActions } from 'redux-actions';
import { routedCategory, clear } from '../actions/CalcRiskAction';

const initialState = {
}

const category = handleActions({
  [routedCategory]: (state, action) => {
    return { routedCategory: action.payload.routedCategory};
  },
  [clear]: () => {
    return Object.assign({}, initialState);
  },
}, initialState);

export default category
